<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-14 10:19:57
 * @LastEditTime : 2022-09-14 16:40:44
 * @FilePath     : \src\BComponent.vue
-->
<template>
  <h3>我是组件b</h3>

  <ul>
      <li v-for="(item, index) in res" :key="index">{{item}}</li>
  </ul>
</template>

<script setup>
import {reactive} from 'vue'

import axios from 'axios'
let res = reactive({});
const res1 = await axios.get('https://www.fastmock.site/mock/7498e6f944f6232eda95f990e3c7557d/web/api/v1/data/getBData')
res = res1.data.data
console.log('res', res)
</script>